package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.OrderUdClientFallback;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-01 23:28
 */
@FeignClient(value = "order-ud",fallbackFactory = OrderUdClientFallback.class)
public interface OrderUDClient{
    @PutMapping("order/update")
    Result update(@RequestBody Orders order);

    @DeleteMapping("order/delete/{id}")
    Result delete(@PathVariable("id") String id);
}
